package com.cs.contract.controller;

import com.cs.contract.service.CsProcurementPlanService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：zrx
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud
 * @name：CsProcurementPlanController
 * @Date：2024/11/27 14:30
 * @Filename：CsProcurementPlanController
 */
@RestController
@RequestMapping("/plan")
public class CsProcurementPlanController extends BaseController {
    private final CsProcurementPlanService csProcurementPlanService;

    public CsProcurementPlanController(CsProcurementPlanService csProcurementPlanService) {
        this.csProcurementPlanService = csProcurementPlanService;
    }

    @GetMapping("/many")
    public AjaxResult selectProcurementPlanByIdForThreeTables(Integer aid) {
        return success(csProcurementPlanService.getProcurementPlanByIdForThreeTables(aid));
    }
}
